<!--登录-->
<div class="login" ng-controller="loginCtrl as vm">
    <div class="header">
        <div class="avatar">
            <img ng-src="{{vm.headImg}}">
            <p ng-bind="vm.name"></p>
        </div>
    </div>

    <div class="main">
        <div class="telephone">
            <div class="img">
                <img src="/img/login/login-admin.png" alt="缺图 ">
            </div>
            <input type="number" style="width: 320px;" data-ng-model="vm.phone" placeholder="请输入手机号码">
            <span class="color-red" data-ng-click="vm.sendSms(vm.phone,1)">发送验证码</span>

        </div>
        <div class="password">
            <div class="img">
                <img src="/img/login/login-password.png" alt="缺图 ">
            </div>
            <input type="number" data-ng-model="vm.sms" placeholder="请输入验证码">
        </div>
    </div>
    <div class="add-button" data-ng-click="vm.login(vm.phone,vm.sms)">
        登录
    </div>
    <div class="registered-button" ui-sref="registered">
        新用户注册
    </div>
</div>